import React from "react";
import { Link } from 'react-router-dom';
import { getQueryObject } from '../../utils/jcore/page'
import { RouteComponentProps } from 'react-router';
import NewsDetailCom from './NewsDetailCom'

export default (props: RouteComponentProps) => {
    let query = getQueryObject(props.location.search)
    return (
        <div>
            <div>
                <Link to="/news/group">返回列表</Link>
            </div>
            <NewsDetailCom id={query.id} />
        </div>
    )
}